<%@ Assembly Name="zevenseas.SharePoint.Solutions.FeatureBlocker.ApplicationPages, Version=1.0.0.0, Culture=neutral, PublicKeyToken=4306074270f0265a" %>
<%@ Page Language="C#" MasterPageFile="~/_admin/admin.master" Inherits="zevenseas.SharePoint.Solutions.FeatureBlocker.ApplicationPages.Configuration" %>

<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" src="~/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register TagPrefix="wssawc" Namespace="Microsoft.SharePoint.WebControls"  Assembly="Microsoft.SharePoint, Version=12.0.0.0,  Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls"  Assembly="Microsoft.SharePoint.Portal, Version=12.0.0.0,  Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<asp:Content ID="Content3" contentplaceholderid="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral1" runat="server" text="Prevent features from activating Configuration Page" EncodeMethod='HtmlEncode'/>
</asp:content>
<asp:Content ID="Content4" contentplaceholderid="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral ID="EncodedLiteral2" runat="server" text="Prevent features from activating Configuration Page" EncodeMethod='HtmlEncode'/>
</asp:Content>
<asp:content ID="Content5" contentplaceholderid="PlaceHolderPageDescription" runat="server">

</asp:content>
<asp:content ID="Content6" contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
</asp:content>
<asp:Content ID="Content7" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
     <wssuc:InputFormSection Title="WebApplication selection" id="fmWebApplication"
            Description="Specify on WebApplication you wish to configure" runat="server">		
            <template_inputformcontrols>            
              <wssuc:InputFormControl runat="server">
                <Template_Control>
			        <SharePoint:WebApplicationSelector ID="uxWebApplicationSelector" runat="server" />
                </Template_Control>
              </wssuc:InputFormControl> 
               </template_inputformcontrols> 
          </wssuc:InputFormSection>
	    <wssuc:InputFormSection Title="Action configuration" id="ifmLifeCycleSetting"
            Description="Specify the action for the blocking of the feature." runat="server">
            <template_inputformcontrols>
                <wssuc:InputFormControl runat="server">
                    <Template_Control>                        
		                <wssawc:InputFormRadioButton id="uxHide" GroupName="TypeOfAction" runat="server" LabelText="Hide the entire feature?" />
				        <wssawc:InputFormRadioButton id="uxBlock" GroupName="TypeOfAction" runat="server" LabelText="Block the button?" />					
				        <wssawc:InputFormRadioButton id="uxRedirect" GroupName="TypeOfAction" runat="server" LabelText="Redirect the user to form?" AutoPostBack="true" OnCheckedChanged="uxRedirect_Changed" /> 				        			        														   
                    </Template_Control>
                </wssuc:InputFormControl>
	        </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection Title="Redirect configuration" id="ifmRedirect" Visible="false"
            Description="Specify the action for the blocking of the feature." runat="server">
            <template_inputformcontrols>
                <wssuc:InputFormControl runat="server">
                    <Template_Control>                        
		                <wssawc:InputFormTextBox id="uxRedirectUrl" runat="server" LabelText="Link to: " Text="/_layouts/zs.FeatureBlocker/form.aspx?id="   />
					    <wssawc:InputFormTextBox id="uxListUrl" runat="server" LabelText="Url of the list" />    					   
                    </Template_Control>
                </wssuc:InputFormControl>
	        </template_inputformcontrols>
        </wssuc:InputFormSection>
        <wssuc:InputFormSection Title="Exclude configuration"
            Description="Specify if you want to exclude farm admins from the configured action above." runat="server">
            <template_inputformcontrols>
                <wssuc:InputFormControl runat="server">
                    <Template_Control>		               
					    <wssawc:InputFormCheckBox id="uxFarmAdmin" runat="server" LabelText="Exclude Farm Admins?" />
                    </Template_Control>
                </wssuc:InputFormControl>
	        </template_inputformcontrols>
        </wssuc:InputFormSection>
        
        <wssuc:ButtonSection runat="server">
            <Template_Buttons>
                <asp:Button runat="server" class="ms-ButtonHeightWidth" OnClick="OnClickOK" Text="<%$Resources:wss,multipages_okbutton_text%>" id="btnOk" accesskey="<%$Resources:wss,okbutton_accesskey%>"/>
            </Template_Buttons>
        </wssuc:ButtonSection> 
</table>
</asp:Content>  
